package magicCardCreator;
import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JTable;


public class mainWindow {

        private JFrame frame;
        private JTextField cardName;
        private JTable table;

        /**
         * Launch the application.
         */
        public static void main(String[] args) {
                EventQueue.invokeLater(new Runnable() {
                        public void run() {
                                try {
                                        mainWindow window = new mainWindow();
                                        window.frame.setVisible(true);
                                } catch (Exception e) {
                                        e.printStackTrace();
                                }
                        }
                });
        }

        /**
         * Create the application.
         */
        public mainWindow() {
                initialize();
        }

        /**
         * Initialize the contents of the frame.
         */
        private void initialize() {
                frame = new JFrame();
                frame.setBounds(100, 100, 400, 525);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.getContentPane().setLayout(null);
                
                JPanel panel = new JPanel();
                panel.setBounds(31, 62, 318, 227);
                frame.getContentPane().add(panel);
                
                cardName = new JTextField();
                cardName.setBounds(29, 27, 262, 20);
                frame.getContentPane().add(cardName);
                cardName.setColumns(10);
                
                JLabel lblNewLabel_1 = new JLabel("New label");
                lblNewLabel_1.setBounds(32, 294, 241, 25);
                frame.getContentPane().add(lblNewLabel_1);
                
                table = new JTable();
                table.setCellSelectionEnabled(true);
                table.setBounds(327, 441, -194, -86);
                frame.getContentPane().add(table);
                
                //Image image = new Image();
                //image.

                JPanel panelT = new JPanel(){
                        public void paintComponent(Graphics g){
                                super.paintComponent(g);
                                //g.drawBImage(ImageIO. new File("magic-new.mse-style/acard.jpg"), 0, 0, null);
                        }
                };
                
        }
}